// 格式化日期
export const format = (date) => {
  if (date.length != 14) {
    return date
  }
  const year = date.substring(0, 4)
  const month = date.substring(4, 6)
  const day = date.substring(6, 8)
  const h = date.substring(8, 10)
  const m = date.substring(10, 12)
  const s = date.substring(12, 14)
  return `${year}-${month}-${day}  ${h}:${m}:${s}`
}
